package com.myzl.coal.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName SendCmd
 * @Author wzb
 * @Date 2022/7/19 10:10
 * @Description
 */
@Data
@NoArgsConstructor
public class CmdDTO {
    /** 设备类型 */
    private Integer deviceType;
    /** 设备id */
    private Integer deviceId;
    /** 命令描述 */
    private String remark;
    /** modbus 使用*/
    private Integer address;
    private Integer count;
    private List<Integer> data;


    public CmdDTO(Integer deviceType, Integer deviceId, Integer address, Integer count) {
        this.deviceType = deviceType;
        this.deviceId = deviceId;
        this.address = address;
        this.count = count;
    }
    public CmdDTO(Integer deviceType, Integer deviceId, Integer address, Integer count,String remark) {
        this.deviceType = deviceType;
        this.deviceId = deviceId;
        this.address = address;
        this.count = count;
        this.remark = remark;
    }

    public CmdDTO(Integer deviceType, Integer deviceId, Integer address, List<Integer> data) {
        this.deviceType = deviceType;
        this.deviceId = deviceId;
        this.address = address;
        this.data = data;
    }
    public CmdDTO(Integer deviceType, Integer deviceId, Integer address, List<Integer> data,String remark) {
        this.deviceType = deviceType;
        this.deviceId = deviceId;
        this.address = address;
        this.data = data;
        this.remark = remark;
    }

}
